#include<iostream>
const int maxn = 100001;
using namespace std;
int exam5_15()
{
	int n, k, i, j;
	bool find;
	float num, a[maxn];
	cin >> n;
	for (i = 0; i < n; i++)
		cin >> a[i];
	while (true)
	{
		cin>>num;
		find = 0;
		for(i=0;i<n;i++)
		if (a[i] == num)
		{
			cout << i << " ";
			find = 1;
		}
		if (!find)cout << "fail" << endl;
	}
	return 0;
}